package cn.webestar.scms.user.entity;

import cn.webestar.scms.commons.entity.BasicDO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName(value = "t_config", autoResultMap = true)
@Schema(name = "Config", description = "租户配置")
public class Config extends BasicDO<Long> {

    @TableField("cid")
    @Schema(description = "租户id")
    private Long cid;

    @TableField("pcode")
    @Schema(description = "父键")
    private String pcode;

    @TableField("code")
    @Schema(description = "键")
    private String code;

    @TableField("val")
    @Schema(description = "值")
    private String val;

    @TableField("title")
    @Schema(description = "标题")
    private String title;

    @TableField("remark")
    @Schema(description = "备注")
    private String remark;

    @TableField("updater")
    @Schema(description = "更新人")
    private Long updater;

    @TableField("update_time")
    @Schema(description = "更新时间")
    private Date updateTime;

}